package Initials;

import java.util.Hashtable;
import Market.Market;

public class InitNode {
										/**  Node Data: {number of buses, Penalty coefficient} */
	 	private double[][] NodeData;
	 	
//C-O-N-S-T-R-U-C-T-O-R-----------------------------------------------------------------------	 
	public InitNode(Market market){
		
		Hashtable<String, Double> nodeData  = new Hashtable<String, Double>();
			
		nodeData.put("buses", 5.0);
		nodeData.put("penalty", 0.05);
		
	    market.nodeData = nodeData;
	}
	
//-----------------------------------------------------------------------------------------------------------------------------------------
	/** Returns Node Data */
	public double[][] getNodeData(){	
		   return NodeData;
	}
	

//-----------------------------------------------------------------------------------------------------------------------------------------
	/** Returns number of Nodes */
	public int getNNode(){		
		return (int)NodeData[0][0];
	}	
}
